<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=paIUXAsVq0Nsyj1Qn04GxUPfcxZNG9V9"></script>
    <title>影院地址</title>
    <style>
       body,html{
           width: 100%;
           height: 100%;
           padding: 0;
           margin: 0;
       }
       #container{
           width: 100%;
           height: 100%;
           overflow: hidden;
       }
    </style>
</head>
<body>
    <div>
        <input type="text" id="sd" value="" style="border: none">
            <script>
                var cin_name=decodeURI(window.location .href);
                var aa=cin_name.indexOf('=');
                if (aa>-1){
                cin_name=cin_name.substring(aa+1);
                    document.getElementById("sd").value=cin_name;
                }
                function asd(){
                    return cin_name;
                }
            </script>
        <div id="l-map"></div>
        <div id="r-result"></div>
    </div>


    <div id='container'></div>
    <script>
        var map = new BMapGL.Map('container');
        map.centerAndZoom(new BMapGL.Point(111.795,40.497), 5);
        //创建地址解析器实例
        var myGeo = new BMapGL.Geocoder();
        // 将地址解析结果显示在地图上，并调整地图视野
        myGeo.getPoint(cin_name, function(point){
            if(point){
                map.centerAndZoom(point, 16);
                map.addOverlay(new BMapGL.Marker(point, {title: cin_name}))
            }else{
                alert('您选择的地址没有解析到结果！');
            }
        }, '呼和浩特市')
    </script>

</body>
</html>

